laravel make factory

33

php artisan tinkerProduct::factory()->count(500)->create()
$users = User::factory()->count(3)->make();
php artisan make:model ModelName -a
// -a stands for all (Model, Controller, Factory and Migration)
// Note: The above command will work successfully in Laravel 5.5 or > versions
//Creates models without storing them in DB
$users = User::factory()->count(3)->make();

Comments

Submit
0 Comments